package cn.cdeden.knowledge.domain.dto;

import cn.cdeden.common.translation.annotation.Translation;
import cn.cdeden.common.translation.constant.TransConstant;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
//import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
* @author GW
* @date 2024-01-19
*/
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class SysLogPermDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 防止精度丢失 */
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

//    @ApiModelProperty(value = "日志编号")
    private Long logId;

//    @ApiModelProperty(value = "类型")
    private String type;

//    @ApiModelProperty(value = "对象id")
    private String objectId;

//    @ApiModelProperty(value = "对象类型")
    private int objectType;

//    @ApiModelProperty(value = "对象名称")
    private String objectName;

//    @ApiModelProperty(value = "团队角色id")
    private String teamRoleId;

//    @ApiModelProperty(value = "团队角色名称")
    private String teamRoleName;

//    @ApiModelProperty(value = "用户昵称")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME)
    private String nickName;


    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

//    @ApiModelProperty(value = "权限")
    private String perm;


//    @ApiModelProperty(value = "创建编号")
    private String createId;

//    @ApiModelProperty(value = "创建者")
    private String createBy;

//    @ApiModelProperty(value = "创建日期")
    private Date createTime;

}
